package cn.yilongquan.util;

import lombok.Data;
import java.util.List;

@Data
public class CustomPageResult<T> {
    // 总记录数
    private Long total; 
    // 当前页数据列表
    private List<T> rows; 
    // 当前页码
    private Integer page; 
    // 每页条数
    private Integer size; 

    public CustomPageResult(Long total, List<T> rows, Integer page, Integer size) {
        this.total = total;
        this.rows = rows;
        this.page = page;
        this.size = size;
    }
}
